import request from "@/utils/request";

// 查询施工班组列表
export function listTeam(query) {
  return request({
    url: '/labour/team/list',
    method: 'get',
    params: query
  })
}

// 新增施工班组
export function addTeam(data) {
  return request({
    url: '/labour/team',
    method: 'post',
    data: data
  })
}

// 查询施工班组下拉列表
export function dropDownList(query) {
  return request({
    url: '/labour/team/dropDownList',
    method: 'get',
    params: query
  })
}

// 查询施工班组详细
export function getTeam(teamId) {
  return request({
    url: '/labour/team/' + teamId,
    method: 'get'
  })
}

// 修改施工班组
export function updateTeam(data) {
  return request({
    url: '/labour/team',
    method: 'put',
    data: data
  })
}

// 删除施工班组
export function delTeam(teamId) {
  return request({
    url: '/labour/team/' + teamId,
    method: 'delete'
  })
}

// 下载施工班组导入模板
export function downloadTeamTemplate() {
  return request({
    url: '/labour/team/downloadTemplate',
    method: 'get'
  })
}
